<!---
	Name         : addcomment.cfm
	Author       : Raymond Camden 
	Created      : February 11, 2003
	Last Updated : December 14, 2003
	History      : Reset history for version 3.0
				   Added support for deleteComment (rkc 10/13/03)
				   Call notifyEntry (rkc 12/14/03)
				   Added explicit line breaks to mail (rkc 1/30/04)
	Purpose		 : Adds comments
--->

		<!--- Form a message about the comment --->
		<cfset subject = application.resourceBundle.getResource("commentaddedtoblog") & ": " & application.blog.getProperty("blogTitle") & " / " & application.resourceBundle.getResource("entry") & ": " & entry.title>
		<cfsavecontent variable="email">
		<cfoutput>
#application.resourceBundle.getResource("commentaddedtoblogentry")#:	#entry.title##chr(10)#
#application.resourceBundle.getResource("commentadded")#: 			#application.localeUtils.dateLocaleFormat(now())# / #application.localeUtils.timeLocaleFormat(now())##chr(10)#
#application.resourceBundle.getResource("commentmadeby")#:	 		#attributes.name# (#attributes.email#)#chr(10)#
URL:
#application.blog.getProperty("blogURL")#?#application.blog.getProperty("blogItemURLPrefix")##attributes.id##chr(10)#
#chr(10)#
#attributes.comments#
		</cfoutput>
		</cfsavecontent>

		<cfset application.blog.notifyEntry(entry.id, email, subject, attributes.email)>
